package com.example.foobar.dao.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.foobar.entity.DidiOrders;
import com.example.foobar.param.DidiDateParam;
import com.example.foobar.param.DidiOrdersPageParam;
import com.example.foobar.vo.DidiData;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import org.apache.ibatis.annotations.Param;

/**
 * 滴滴订单 服务类
 *
 * @author 郑英奔
 * @since 2021-10-26
 */
public interface DidiOrdersDaoService extends BaseService<DidiOrders> {

    /**
     * 保存
     *
     * @param didiOrders
     * @return
     * @throws Exception
     */
    boolean saveDidiOrders(DidiOrders didiOrders) throws Exception;

    /**
     * 修改
     *
     * @param didiOrders
     * @return
     * @throws Exception
     */
    boolean updateDidiOrders(DidiOrders didiOrders) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteDidiOrders(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param didiOrdersPageParam
     * @return
     * @throws Exception
     */
    Paging<DidiOrders> getDidiOrdersPageList(DidiOrdersPageParam didiOrdersPageParam) throws Exception;


    IPage<DidiData> getDidiDateList(Page page, DidiDateParam didiDateParam);
}
